//
//  ViewController.m
//  ChangeLabelColor_Code
//
//  Created by niit on 16/1/29.
//  Copyright © 2016年 NIIT. All rights reserved.
//

#import "ViewController.h"

@interface ViewController ()

@end

@implementation ViewController



- (void)viewDidLoad
{
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
//    self.image = [UIImage imageNamed:@"apress_logo"];
//    [self.view addSubview:self.image];
    
    // 创建用户名Ladel
    self.nameLabel = [[UILabel alloc] init];
    self.phoneLabel = [[UILabel alloc] init];
    self.nameLabel.frame = CGRectMake(52, 220, 75, 40);
    self.phoneLabel.frame = CGRectMake(67, 268, 66, 40);
    self.nameLabel.text = @"用户名";
    self.phoneLabel.text = @"号码";
    self.nameLabel.textColor = [UIColor blackColor];
    self.phoneLabel.textColor = [UIColor blackColor];
    
    [self.view addSubview:self.nameLabel];
    [self.view addSubview:self.phoneLabel];
    
    // 创建text
    self.nameTextField = [[UITextField alloc] init];
    self.phoneTextField = [[UITextField alloc] init];
    self.nameTextField.frame = CGRectMake(141, 225, 183, 30);
    self.phoneTextField.frame = CGRectMake(141, 273, 183, 30);
    self.nameTextField.text = @"";
    self.phoneTextField.text = @"";
    self.nameTextField.textColor = [UIColor grayColor];
    self.phoneTextField.textColor = [UIColor grayColor];
    
    [self.view addSubview:self.nameTextField];
    [self.view addSubview:self.phoneTextField];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
